﻿using System;
using System.Collections.Generic;

using Moe.ECamel.Common.Contracts;
using Moe.ECamel.Common.Entities;

namespace Moe.ECamel.Client.ServiceProxies
{
	public class RentalServiceProxy : ECamelServiceProxy<IRentalService>, IRentalService
	{
		public List<Rental> GetCustomerActiveRentals(int customerId)
		{
			return ServiceProxy.GetCustomerActiveRentals(customerId);
		}

		public List<Rental> GetCustomerRentals(int customerId)
		{
			return ServiceProxy.GetCustomerRentals(customerId);
		}

		public RentalResponse RentItem(RentalRequest request)
		{
			return ServiceProxy.RentItem(request);
		}
		public ReturnRentalResponse ReturnItem(int rentalId, DateTime dateOfReturn)
		{
			return ServiceProxy.ReturnItem(rentalId, dateOfReturn);
		}

		public ECamelError PayFine(int rentalId, DateTime paymentDate)
		{
			return ServiceProxy.PayFine(rentalId, paymentDate);
		}
	}
}